home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
Menu
/
c
/
AddSubMenu
next >
Wrap
Text File
|
1995-07-09
|
978b
|
27 lines
/*
#### # # # #
# # # # # The FreeWare C library for
# # ## ### # # # # ### RISC OS machines
# # # # # # # # # # # ___________________________________
# # #### ### ## # # # #
# # # # # # # # # # Please refer to the accompanying
#### ### #### # # ##### # ### documentation for conditions of use
________________________________________________________________________
File: Menu.AddSubMenu.c
Author: Copyright © 1993 Shaun Blackmore and Jason Williams
Version: 1.00 (30 Apr 1993)
Purpose: Adds one menu to another as a submenu
*/
#include "DeskLib:Wimp.h"
#include "DeskLib:Menu.h"
void Menu_AddSubMenu(menu_ptr menu, int entry, menu_ptr submenu)
{
menu_item *item = (menu_item*) (((int) menu) + sizeof(menu_block));
item[entry].submenu.menu = submenu;
}